<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr"><head>
  <title>Script Non-Engine Directives</title>
  <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  <xml></xml>
  <link rel="stylesheet" type="text/css" href="MSDN.css">
</head><body id="divID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
  <tbody>
    <tr id="hdr">
      <td class="runninghead">
      <p align="left">CS-Script 3.27.0</p>
      </td>
      <td class="product"> <br>
      </td>
    </tr>
  </tbody>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1" align="left">Non-Engine
Directives</h1>
</div>
</div>
<br>
<div id="nstext"><font face="Arial" size="2"><span><span style="font-weight: bold;"></span></span></font>In
addition to the directives processed by the script engine there is also
another
type of directives, which if present in code can affect the way how
script is handles. These directives are handled not by the engine but
by other CS-Script framework components. Currently there are only a
few&nbsp;such directives but it can be more of them in the future
releases.<br>
<br>
<p>1. This is the code directive to control how&nbsp;the script is
loaded in VS2010/VS2010E assembly at execution
time:</p>
<div class="syntax">//css_dbg [/t:&lt;target&gt;] [/args:"[arg0]
[argN]"] [/platform:&lt;architecture&gt;];</div>
<blockquote>
  <p><b>/t</b> - Visual Studio project type</p>
  <div style="margin-left: 40px;">/t:exe&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;-
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Console Executable&nbsp;<br>
/t:winexe -
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Windows Executable<br>
/t:library&nbsp; -
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Class Library<br>
  </div>
  <p><b>/args</b> - arguments to be passed to the script application
when running under Visual Studio</p>
  <p><b>/platform</b> - Visual Studio project platform target</p>
  <div style="margin-left: 40px;">/platform:anycpu&nbsp;&nbsp;&nbsp;
-&nbsp;&nbsp; Any CPU&nbsp;<br>
/platform:x86&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;
x86<br>
/platform:x64&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;
x64<br>
/platform:Itanium&nbsp;&nbsp; -&nbsp;&nbsp; Itanium<br>
  </div>
</blockquote>
<span style="font-weight: bold;">
Note:</span> that <span style="font-style: italic;">//css_dbg</span>
directive is not processed by the script engine but
by the <span style="font-style: italic;">debugVS10.0.cs script</span>,
which is responsible for generating a
temporary project file when opening a script with VS2010.
<div style="margin-left: 40px;"><span style="font-style: italic;"><span style="color: rgb(0, 0, 153);"></span><br>
</span></div>
<font face="Arial" size="2"><span></span></font><font face="Arial" size="2"><span></span></font><font face="Arial" size="2"><span></span></font><font face="Arial" size="2"><span></span></font><br>
<p>2. This is the code directive to control how&nbsp;the class wrapper
for <a href="Classless.html">calssless scripts</a> is generated:</p>
<div class="syntax">//css_classless [NamespaceName.]ClassName;</div>
<blockquote>
  <p><span style="font-weight: bold;">NamespaceName</span> - name of
the namespace of the generated class wrapper</p>
  <p><span style="font-weight: bold;">ClassName</span> - class name of
the generated class wrapper</p>
</blockquote>
<span style="font-weight: bold;">
Note:</span> that <span style="font-style: italic;">//css_classless</span>
directive is not processed by the script engine but
by the <span style="font-style: italic;">CSSCodeProvider.dll
alternative compiler</span><br>
.
<div style="margin-left: 40px;"><span style="font-style: italic;"><span style="color: rgb(0, 0, 153);"></span><br>
</span></div>
<font face="Arial" size="2"><span></span></font><font face="Arial" size="2"><span></span></font><font face="Arial" size="2"><span></span></font><font face="Arial" size="2"><span></span></font><br>
<h4 class="dtH4">See Also</h4>
<br>
<a href="Directives.html">Script Engine Directives</a><br>
<br>
<a href="ws.html"><span style="text-decoration: underline;">
</span></a></div>
</body></html>

